import request from '@/utils/request'

var baseUrl = '/order'

export function getById(id) {
  return request({
    url: baseUrl + '/get-by-id',
    method: 'get',
    params: { id }
  })
}

export function getListByCustomerAndStatus(status) {
  return request({
    url: baseUrl + '/get-list-by-customer-and-status',
    method: 'get',
    params: { status }
  })
}

export function save(data) {
    return request({
      url: baseUrl + '/save',
      method: 'post',
      data
    })
  }
  